class C:
    def method(self, a: int, b: int) -> int: ...

_inst: C = ...
func = _inst.method